package action.plan;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import persistence.model.TdfkfaBasicInvest;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class AddPlanTempSLTdfktzAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    private Map<String, Object> session;

    private TdfkfaBasicInvest tdfkfaBasicInvest;

    private String tempSaveStatus;

    public String save() throws Exception {

        session.put("TempStore_tdfkfaBasicInvest", tdfkfaBasicInvest);
        tempSaveStatus = "success";
        return Action.SUCCESS;
    }

    public String load() throws Exception {

        tdfkfaBasicInvest = (TdfkfaBasicInvest) session.get("TempStore_tdfkfaBasicInvest");
        return Action.SUCCESS;
    }

    public TdfkfaBasicInvest getTdfkfaBasicInvest() {
        return tdfkfaBasicInvest;
    }

    public void setTdfkfaBasicInvest(TdfkfaBasicInvest tdfkfaBasicInvest) {
        this.tdfkfaBasicInvest = tdfkfaBasicInvest;
    }

    public String getTempSaveStatus() {
        return tempSaveStatus;
    }

    public void setTempSaveStatus(String tempSaveStatus) {
        this.tempSaveStatus = tempSaveStatus;
    }

    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}
